<?php
ob_start();
session_cache_expire(999999999);
if (!isset($_SESSION)) {
    session_start();
}
$lang = $_SESSION['lang'];
if ($lang == '')
    $lang = 'EN';

if (!isset($_GET['page'])) {
    $page = 1;
} else {
    $page = $_GET['page'];
}
if($_SESSION['role']!=2){
	echo $_SESSION['role'];
	header("Location: ../index.php");
}
$rows_per_page = 5;
$page_start = ( $page - 1 ) * $rows_per_page;
$page_end = $page * $rows_per_page;
include 'operations/connection.php';
include("operations/get_lang.php");
$value = getlang();
include($value);

$content = "home/content-home-user.php";

if (!isset($_SESSION['user'])) {
    header('Location: login.php?timeout=on');
} else {
    $username = $_SESSION['fullname'];
    $id_employee = $_SESSION['IDEmployee'];
}
echo $_SESSION['back'];

$title = $_SESSION['browser'];





require("MainTemplate.php");
ob_flush();
?>